home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: kjhopps@mmm.com (Kevin J Hopps)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: SUN C Single key entry with no CR reqd
- Followup-To: comp.lang.c,comp.lang.c++
- Date: 12 Mar 1996 14:52:58 GMT
- Organization: 3M - St. Paul, MN 55144-1000 US
- Message-ID: <4i434a$8nu@dawn.mmm.com>
- References: <4i1hr6$asm@ni1.ni.net>
- Reply-To: kjhopps@mmm.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Ed Thomson (ethomson@cinahl.com) wrote:
- > I am new to SUN C and was wondering how to issue a statement like
- > getchar or getc but not require the user to press return after hitting
- > the key.
-
- It's somewhat complicated, actually. The problem is that normally
- keyboard input is line buffered. The terminal driver handles the
- characters and the backspaces and makes the entire line available
- to the application when a newline is entered.
-
- If you want to learn more about input processing from a keyboard,
- run "man termio" -- that's a start.
- --
- Kevin J. Hopps, 3M Company kjhopps@mmm.com
- Opinions are my own. I don't speak for 3M.
- But 3M speaks for me -- I did not write the following line:
-
- Opinions expressed herein are my own and may not represent those of 3M.
-